package 原子类;

import java.util.Arrays;
import java.util.concurrent.atomic.LongAdder;

/**
 * @program: algorithm
 * @description:
 * @author: 陈恩涛
 * @create: 2022-08-25 21:38
 **/
public class LongAdderDemo {
    public static void main(String[] args) {
        final LongAdder longAdder = new LongAdder();
        longAdder.add(1);
        final User[] users = new User[2];
        Arrays.stream(users).forEach(System.out::println);
    }
}

class User{
    private  String name;

    private Integer age;

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public Integer getAge() {
        return age;
    }

    public void setAge(Integer age) {
        this.age = age;
    }
}
